package org.cying.main.feign;

import org.cying.main.domain.SampleResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Login Server 远程调用 Student Server 接口
 * @author Cying
 */
@Component
@FeignClient(value = "Student-Server")
public interface ClientFeignStudent {

    @GetMapping(value = "/get-stu-by-sid")
    SampleResult getStuBySid(@RequestParam(value = "sid", required = true) String sid);

}
